package cn.itcast.service;

import cn.itcast.dao.OrdersDao;
import cn.itcast.domain.Orders;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author :HCH
 * @version : 1.0.0
 * @date :Created in 2019/7/10 16:51
 * @description :TODO
 * @modified :
 */
@Service
public class OrdersService {

    @Autowired
    private OrdersDao ordersDao;

    /**
     * @author      :HCH
     * @date        :Created in 2019/7/10 18:25
     * @description : 查询所有订单
     * @param null
     * @return      :
     */
    public List<Orders> findAll() {

       return ordersDao.findAll();
    }


}
